﻿<!DOCTYPE>

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
    <title>排故流卡创建</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
    <style type="text/css">
        .linkbutton{margin-left:20px;}
         table tr td{padding:0px 5px}
         .divLabel td{text-align: end;text-align: right;}
         #txtproductContent{width: 120px; height: 22px}
    </style>
</head>
<body>
 <div class="panelSection">    
        <div class="easyui-panel " title="查询区域" style="padding:3px;width: 100%" 
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
        <form id="searchForm" style="margin-bottom: 2px;">
               <table>
                <tr>
                    <td>件号：</td>
                    <td>机型：</td>
                    <td>订单号：</td>
                    <td>状态：</td>
                </tr>
                <tr>
                    <td><input id="txtProductName" class="easyui-textbox" name="ProductName" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="txtProductFamily" class="easyui-textbox" name="ProductFamily" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="txtMfgorderName" class="easyui-textbox" name="MfgOrdername" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="txtOrderStatus" class="easyui-textbox" name="OrderStatus" type="text" style="width: 120px; height: 22px" /></td>
                    <td><a href="javascript:void(0)" id="btnSearch" class="easyui-linkbutton"   onclick="page.searchData()">查询</a>
                    <a href="javascript:void(0)" id="btnReset" class="easyui-linkbutton"   onclick="page.searchReset()">重置</a>
                    </td>
                </tr>
            </table>
        </form> 
        </div> 
    </div> 
      <div class="panelSection">    
        <div class="easyui-panel " title="件号单元关系" style="padding:3px;width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
        <div class="easyui-layout" style="width:100%;height:550px;">
		    <div data-options="region:'center'" title="">
                <table id="DealMfgorder" style="height:513px;width:100%"></table>
                     <div id="pp" style="float: right" class="easyui-pagination" data-options="   
                         layout:['first','prev','next','last','manual','info'],              
                            total: 0,
                            showPageList: false,
                            showPageInfo: false,
                            showRefresh: false,
                            afterPageText:'共&nbsp{pages}&nbsp页',
                             buttons:[{
                                    iconCls:'',
                                    text:'Go',
                                    id:'pageGo'
                            }]
                        ">
                            </div>
		    </div>
            <div data-options="region:'east'"  style="width:35%;">
			    <table id="gdContainer" class="easyui-datagrid" style="width: 100%;"data-options="rownumbers:true">
                </table>
		    </div>
	</div>
        </div>
      </div>
      <div class="panelSection">    
        <div class="easyui-panel " title="按钮区域" style="padding:3px;width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
            <div style="margin:15px 0px">
                  <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.OpenCreateMfg()">创建排故订单</a>
                  <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.OpenCreateContainer();">创建排故流卡</a>
                  <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.MfgOrderOpenOrStop();">订单启用/停用</a>
            </div>
      </div>
      </div>
      <div id="statusMessage" style="font-size: 14px; height: 40px"></div>
     <!--创建排故订单 -->
     <div id="dlg" title="排故订单创建" style="width:770px;height:270px;display:none;">
        <div class="easyui-panel " title="维护区域" style="padding:3px;width: 100%" data-options="closable:false,minimizable:false,maximizable:false">
            <form id="CreateDealMfgForm" style="margin-bottom: 2px;">
               <table>
                <tr class="divLabel" style="line-height:40px">
                    <td>件号：</td>
                    <td><div id="productContent"></div>
                        <div style="display:none">
                        <input id="productVer" class="easyui-textbox" name="productVer" type="text"  />
                        <input id="productName" class="easyui-textbox" name="productName" type="text" />
                        </div>
                    </td>
                    <td>分厂：</td>
                    <td><input id="factoryName" class="easyui-textbox" name="factoryName" type="text" style="width: 120px; height: 22px" disabled/></td>
                    <td>发动机号：</td>
                    <td><input id="Text6" class="easyui-textbox" name="engineNo" type="text" style="width: 120px; height: 22px" /></td>
                </tr>
                <tr class="divLabel" style="line-height:30px">
                    <td>零件名称：</td>
                    <td><input id="productDes" class="easyui-textbox" name="productDes" type="text" style="width: 180px; height: 22px" readonly /></td>
                    <td>订单号：</td>
                    <td><input id="Text3" class="easyui-textbox" name="mfgOrderName" type="text" style="width: 120px; height: 22px" /></td>
                    <td>机型：</td>
                    <td><input id="Text4" class="easyui-textbox" name="productFamily" type="text" style="width: 120px; height: 22px" /></td>
                </tr>
                <tr class="divLabel" style="line-height:40px">
                    <td>数量：</td>
                    <td><input id="Text7" class="easyui-numberbox" name="qty" type="text" style="width: 180px; height: 22px" /></td>
                    <td>计划开始时间：</td>
                    <td><input id="Text8" class="easyui-datebox" name="startDate" type="text" style="width: 120px; height: 22px" /></td>
                    <td>计划结束时间：</td>
                    <td><input id="Text9" class="easyui-datebox" name="endDate" type="text" style="width: 120px; height: 22px" /></td>
                </tr>
            </table>
        </form> 
        </div>
        <div style="margin:20px;float:right">
                <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.CreateDealMfgorder();">保存</a>
                <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="$('#dlg').dialog('close');">关闭</a>
        </div>
     </div>
     <!--创建排故流卡 -->
     <div id="dlg2" title="排故流卡创建" style="width:770px;height:300px;display:none;">
        <div class="easyui-panel " title="维护区域" style="padding:3px;width: 100%" data-options="closable:false,minimizable:false,maximizable:false">
            <form id="CreateDealContainer" style="margin-bottom: 2px;">
               <table>
                <tr class="divLabel" style="line-height:40px">
                    <td>件号：</td>
                    <td><div id="productContent2"></div>
                        <div style="display:none">
                        <input id="productId" class="easyui-textbox" name="productId" type="text"/>
                        </div>
                    </td>
                    <td>工艺规程：</td>
                    <td><input id="workFlowInfo" class="easyui-combobox" name="workFlowId" type="text" style="width: 120px; height: 22px" /></td>
                    <td>排故单号：</td>
                    <td><input id="dealFualtBill" class="easyui-textbox" name="dealFualtBill" type="text" style="width: 120px; height: 22px" data-options="onChange:function(){page.GenerateContainer();}"/></td>
                </tr>
                <tr class="divLabel" style="line-height:30px">
                    <td>主制中心：</td>
                    <td><input id="WorkcenterID" class="easyui-combobox" name="workCenterId" type="text" style="width: 180px; height: 22px" /></td>
                    <td>主制班组：</td>
                    <td><input id="TeamID" class="easyui-combobox" name="teamId" type="text" style="width: 120px; height: 22px" /></td>
                    <td>订单号：</td>
                    <td><input id="mfgOrderName" class="easyui-textbox" name="mfgOrderName" type="text" style="width: 120px; height: 22px" readonly /></td>
                </tr>
                <tr class="divLabel" style="line-height:40px">
                    <td>批次数量：</td>
                    <td><input id="Text15" class="easyui-numberbox" name="qty" type="text" style="width: 180px; height: 22px" /></td>
                    <td>计划开始时间：</td>
                    <td><input id="Text16" class="easyui-datebox" name="startDate" type="text" style="width: 120px; height: 22px" /></td>
                    <td>计划结束时间：</td>
                    <td><input id="Text17" class="easyui-datebox" name="endDate" type="text" style="width: 120px; height: 22px" /></td>
                </tr>
                <tr class="divLabel" style="line-height:30px">
                    <td>批次号：</td>
                    <td><input id="containerName" class="easyui-textbox" name="containerName" type="text" style="width: 180px; height: 22px" readonly /></td>
                    <td>批次类型：</td>
                    <td><input id="containerType" class="easyui-radiobutton" name="containerType" value="2" type="text" style="width: 22px; height: 22px" label="批量加工" labelPosition="after" labelAlign="left" checked/></td>
                    <td>工艺员：</td>
                    <td><input id="WorkID" class="easyui-combobox" name="workId" type="text" style="width: 120px; height: 22px" /></td>
                </tr>
            </table>
        </form> 
        </div>
        <div style="margin:20px;float:right">
                <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.CreateDealContainer();">保存</a>
                <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="$('#dlg2').dialog('close');">关闭</a>
        </div>
     </div>
</body>
</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/array.pollyfill.js" type="text/javascript"></script>


<script type="text/javascript">
/*
创建人：longb
日期：2025-06-18
描述：排故流卡创建js
*/
var page = {
    pagetotal: 0,
    pageSize: 20,
    pageNumber: 1,
    factoryName:null,
    ajaxUrl: getRootPath() + "/Ashx/DealFaultBillHandler.ashx",
    comboxUrl: getRootPath() + "/Ashx/DealFaultBillHandler.ashx",
    comboxAction:"GetProductSelect",
    //初始化页面
    init: function () {
        page.bind();
        page.initData();
        NewcustomizedEasyuiPagination('pp'); //定制化分页
        $('#pp').find('.pageSize').val(page.pageSize); //初始化行数
    },
    //页面事件绑定
    bind: function () {
        $('#txtOrderStatus').combobox({
            data: [{ id:'', text: '全部' },{ id:'0', text: '启用' }, { id:'1', text: '停用'}],
            valueField: 'id',
            textField: 'text'
        });
        $('#txtOrderStatus').combobox('setValue', '');
        //订单信息
        $("#DealMfgorder").datagrid({
            checkOnSelect: false,
            selectOnCheck: false,
            singleSelect: true,
            rownumbers: true,
            onLoadSuccess: function (data) {
                $('#pp').pagination('refresh', {	// 改变选项，并刷新分页栏信息
                    total: page.pagetotal,
                    pageSize: page.pageSize,
                    pageNumber: page.pageNumber
                });
                NewcustomizedEasyuiPagination('pp'); //定制化分页
            },
            columns: [[
                { field: 'ck', title: '选择', checkbox: true },
                 { field: 'MFGORDERNAME', title: '订单号', width: 150 },
		         { field: 'PRODUCTFAMILYNAME', title: '机型', width: 80 },
                 { field: 'PRODUCTNAME', title: '件号', width: 100 },
                 { field: 'DESCRIPTION', title: '件号名称', width: 90 },
		         { field: 'ENGINENO', title: '发动机号', width: 80 }, //--
                 { field: 'QTY', title: '计划数量', width: 100 },
                 { field: 'CONTAINERCOUNT', title: '已创流卡数', width: 100 },
                 { field: 'CONTAINERQTY', title: '已开卡数量', width: 100 },
                 { field: 'PLANNEDSTARTDATE', title: '计划开始时间', width: 130, formatter: function (value, row, index) {
                     if (value != null)
                         return dayjs(value).format("YYYY-MM-DD");
                 }
                 },
                 { field: 'PLANNEDCOMPLETIONDATE', title: '计划完成时间', width: 130, formatter: function (value, row, index) {
                     if (value != null)
                         return dayjs(value).format("YYYY-MM-DD");
                 }
                 },
                 { field: 'CREATEDATE', title: '创建时间', width: 130, formatter: function (value, row, index) {
                     if (value != null)
                         return dayjs(value).format("YYYY-MM-DD");
                 }
                 },
                 { field: 'ORDERSTATUS', title: '状态', width: 100 }
	           ]],
               onSelect: function (index, rowData) {
                $("#DealMfgorder").datagrid("uncheckAll").datagrid("checkRow",index);//单选行，去掉同时勾选
                page.reset(false, false, true);
                page.searchDealContainer();
            },
        });
        $("#gdContainer").datagrid({
            columns: [[
                { field: 'DEALFAULTBILL', title: '排故单号', width: 150 },
                { field: 'PRODUCTNAME', title: '件号', width: 100 },
                { field: 'CONTAINERNAME', title: '批次号', width: 100 },
                { field: 'CONTAINERTYPE', title: '批次类型', width: 100 },
                { field: 'CONTAINERSTATUS', title: '批次状态', width: 90 },
                { field: 'QTY', title: '在制数量', width: 90 }
	           ]]
        });
        //分页事件
        $('#pp').pagination({
            onSelectPage: function (pageNumber, pageSize) {
                NewcustomizedEasyuiPagination('pp'); //定制化分页
                page.pageSize = pageSize; page.pageNumber = pageNumber;
                page.GetDealMfgorder();
            }
        });
        //绑定分页go按钮
        $('#pageGo').on("click", function () {
            var pageNumber = $(this).parents('tr').find('.pagination-num').val();
            page.pageNumber = pageNumber;
            page.pageSize=$('#pp').find('.pageSize').val() == "" ? page.pageSize : Number($('#pp').find('.pageSize').val());
            page.GetDealMfgorder();
        });
        //清除按钮
        $('#btnReset').on("click", function () {
            page.reset(true, true,true);
        });

        //绑定件号选择组件
        $("#productContent").selectCombox({
            search: function () {
            },
            cancel: function () { //件号取消点击事件
                 $("#productDes").textbox("setValue", "");
            },
            selected: function (val, text,record) {//件号下拉选择事件
                $("#productDes").textbox("setValue", record.DESCRIPTION);
                $("#productVer").textbox("setValue", record.PRODUCTREVISION);
                $("#productName").textbox("setValue", record.PRODUCTNAME);
            }
        });
        $('#productContent2').newselectCombox({
            search: function (obj) {},
            cancel: function (obj) {$('#productId').textbox('setValue',''); $('#workFlowInfo').combobox('clear');$('#workFlowInfo').combobox('loadData',[]);},
            selected: function (val, text,record,obj){
                $('#productId').textbox('setValue',text);
                page.GetWorkflowInfo(record);
                page.GenerateContainer();
             }
        },{},{url:page.ajaxUrl,action:"GetProductSelect",index:1});
    },
    initData: function () {
        page.post(getRootPath() + "/Ashx/ZsHandler/ZSProcessHandler.ashx",{ action: "GetWorkcenterByFactory" }, function (res) {
            $('#WorkcenterID').combobox({
                data: res,
                valueField: 'WORKCENTERID',
                textField: 'WORKCENTERNAME',
                onSelect: function (record) {
                    page.GetTeamByWorkcenter(record.WORKCENTERID);
                }
            });
        });
        page.post(null,{ action: "initData" }, function (res) {
            $('#WorkID').combobox({
                data: res.DBTable,
                valueField: 'EMPLOYEEID',
                textField: 'FULLNAME',
                onSelect: function (record) {
                }
            });
            page.factoryName=res.ReturnData.Factory;
            
        });
    },
    GetTeamByWorkcenter: function (WorkcenterID) {
        page.post(getRootPath() + "/Ashx/ApsHandler/EmployeeMaintPage.ashx?actions=getTeamList",{ action: "GetTeam", workcenterid: WorkcenterID }, function (res) {
            $('#TeamID').combobox({
                data: res.DBTable,
                valueField: 'teamid',
                textField: 'teamname',
                onSelect: function (record) {
                }
            });
        });
    },
    //查询
    searchData: function () {
        page.reset(false,true,true);
        page.pageNumber = 1;
        page.GetDealMfgorder();
    },
    OpenCreateMfg:function(){
        $('#CreateDealMfgForm').form('clear');
        $('#divComboxTxt,#divComboxSearch').show();
        $('#divComboxSelect,#divComboxClear').hide();
        $('#factoryName').textbox('setValue', page.factoryName);
        $('#dlg').dialog({
            closed: false,
            cache: false,
            modal: true
        });
    },
    OpenCreateContainer:function(){
        $('#CreateDealContainer').form('clear');
        $("#containerType").radiobutton({checked:true});
        $('#divComboxTxt1,#divComboxSearch1').show();
        $('#divComboxSelect1,#divComboxClear1').hide();
        var row = $("#DealMfgorder").datagrid("getSelected");
        if(row==null){displayMessage("请选择排故订单再进行操作",false);return;}else{
            $('#mfgOrderName').textbox('setValue', row.MFGORDERNAME);
        }
        $('#dlg2').dialog({
            closed: false,
            cache: false,
            modal: true
        });
    },
    //查询 下拉工艺
    GetWorkflowInfo:function(val){
        var param = {
            action: "GetWorkflowSelect",
            productName:val.NAME,
            workflowName:"",
            isThisFactory:false,
        };
        page.post(getRootPath() + "/Ashx/CommonHandler.ashx",param, function (res) {
            if (res.Result) {
                $('#workFlowInfo').combobox({
                    data: res.DBTable,
                    valueField: 'WORKFLOWID',
                    textField: 'WORKFLOWNAME'
                   })
            }else{
                displayMessage(res.Message,false);
            }
        });
    },
    //查询订单单信息
    GetDealMfgorder: function () {
        var frdata = $('#searchForm').serializeArray();
        var data = {};
        $.each(frdata, function () {
            data[this.name] = this.value
        });
        var param = {
            action: "GetDealMfgorder",
            pageSize: page.pageSize,
            pageNumber: page.pageNumber,
            data: JSON.stringify(data)
        };
        page.post(null,param, function (res) {
            if (res.Result) {
                page.pagetotal = res.RowCount;
                $('#DealMfgorder').datagrid('loadData', res.DBTable);
            }
        });
    },
    //创建排故订单
    CreateDealMfgorder: function () {
        var frdata = $('#CreateDealMfgForm').serializeArray();
        var data = {};
        $.each(frdata, function () {
            if(this.name!='MFGORDERNAME'){
                data[this.name] = this.value
            }
        });
       var param = {
            action: "SaveDealMfgOrder",
            data: JSON.stringify(data)
        };
        if(data.productName==''){ displayMessage("请选择【件号】再进行操作",false);return;}
        if(data.mfgOrderName==''){ displayMessage("请输入【订单号】再进行操作",false);return;}
        if(data.qty==''){ displayMessage("请输入【数量】再进行操作",false);return;}
        if(data.startDate==''){ displayMessage("请输入【计划开始时间】再进行操作",false);return;}
        if(data.endDate==''){ displayMessage("请输入【计划结束时间】再进行操作",false);return;}
        page.post(null,param, function (res) {
            if (res.Result) {
               $('#dlg').dialog('close');
               page.GetDealMfgorder();
            }
            displayMessage(res.Message,res.Result);
        });
    },
    //创建排故流水卡
    CreateDealContainer: function () {
       var frdata = $('#CreateDealContainer').serializeArray();
        var data = {};
        $.each(frdata, function () {
            if(this.name!='MFGORDERNAME'){
                data[this.name] = this.value
            }
        });
        var strWrokflow= $('#workFlowInfo').combobox('getText');
        var workCenterText=$('#WorkcenterID').combobox('getText');
        var teamText=$('#TeamID').combobox('getText');
        data.strWrokflow=strWrokflow;
        data.productinfo=data.productId;
        data.workCenterText=workCenterText;
        data.teamText=teamText;
       var param = {
            action: "SaveDealContainer",
            data: JSON.stringify(data)
        };
        if(data.productId==''){ displayMessage("请选择【件号】再进行操作",false);return;}
        if(data.workFlowId==''){ displayMessage("请选择【工艺规程】再进行操作",false);return;}
        if(data.dealFualtBill==''){ displayMessage("请输入【排故单号】再进行操作",false);return;}
        if(data.workCenterId==''){ displayMessage("请选择【主制工区】再进行操作",false);return;}
        if(data.teamId==''){ displayMessage("请选择【主制班组】再进行操作",false);return;}
        if(data.qty==''){ displayMessage("请输入【数量】再进行操作",false);return;}
        if(data.startDate==''){ displayMessage("请输入【计划开始时间】再进行操作",false);return;}
        if(data.endDate==''){ displayMessage("请输入【计划结束时间】再进行操作",false);return;}
        if(data.workId==''){ displayMessage("请选择【主制班组】再进行操作",false);return;}
        page.post(null,param, function (res) {
            if (res.Result) {
               $('#dlg2').dialog('close');
               page.searchDealContainer();
            }
            displayMessage(res.Message,res.Result);
        });
    },
    //订单启用/停用
    MfgOrderOpenOrStop: function () {
        var rowDatas = $("#DealMfgorder").datagrid("getChecked");
        if (rowDatas.length == 0) {
            return;
        }      
       var param = {
            action: "SaveDealMfgOrderStatus",
            data: JSON.stringify(rowDatas)
        }
        page.post(null,param, function (res) {
            displayMessage(res.Message,res.Result);
            page.GetDealMfgorder();
        });
     },
    searchDealContainer: function () {
        var rowDatas = $("#DealMfgorder").datagrid("getChecked");
        if (rowDatas.length == 0) {
            return;
        }
        var mfgorderPara =[];
         $.each(rowDatas, function (index,item) {
            mfgorderPara.push(item.MFGORDERID);
         });
        var param = {
            action: "GetDealContainer",
            mfgorderids: mfgorderPara.join(',')
        };

       page.post(null,param, function (res) {
            if (res.Result) { 
                var dt = res.DBTable;
                $("#gdContainer").datagrid('loadData', { total: dt.length, rows: dt });
             }
            displayMessage(res.Message, res.Result);
        });
     },
    
    GenerateContainer:function(){
      var productinfo=  $('#productId').textbox('getValue');
      var dealFualtBill=  $('#dealFualtBill').textbox('getValue');
      var mfgRow= $("#DealMfgorder").datagrid("getSelected");
      if(productinfo==''||dealFualtBill==''){return;}
      page.post(null,{action:'GenerateContainer',data:JSON.stringify({productinfo:productinfo,dealFualtBill:dealFualtBill,mfgorderid:mfgRow.MFGORDERID})}, function (res) {
           if(res.Result){
                $('#containerName').textbox('setValue',res.ReturnData);
           }else{
                displayMessage(res.Message, res.Result);
           }
        });
    },
    
    //查询重置
    searchReset: function () {
        page.reset(true,true,true);
    },

    //清除方法，重要！！！
    reset: function (iscondition, isresult, isDetail) {
        clearMessage();
        if (iscondition) {
            $("#txtProductName").textbox("setValue", ""); //订单号
            $("#txtProductFamily").textbox("setValue", ""); //件号
            $("#txtMfgorderName").textbox("setValue", ""); //任务单
            $("#txtOrderStatus").textbox("setValue", ""); //任务单类型
        }

        if (isresult) {
            clearEasyuiDataGrid("DealMfgorder", 1); //查询结果列表
            $('#EditorForm').form('clear');
            page.pageNumber = 1; page.pagetotal = 0;//重置分页
            $('#pp').pagination('refresh', {
                total: page.pagetotal,
                pageSize: page.pageSize,
                pageNumber: page.pageNumber
            });
        }
        if(isDetail)
        {
            clearEasyuiDataGrid("gdContainer", 1); //明细信息
        }
    },
    //post数据
    post: function (url,param, callback) {
        $.ajax({
            type: "Post",
            url:url==null?page.ajaxUrl:url,
            data: param,
            cashe: false,
            async: true,
            dataType: "json",
            beforeSend: function () {
                $.messager.progress({ text: '', msg: '处理中...' });
            },
            success: function (data) {
                $.messager.progress('close');
                callback(data);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                $.messager.progress('close');
                displayMessage(XMLHttpRequest.responseText, false);
            }
        });
    }
}
$(function () {
    page.init();
});

</script>
<script src="/InSiteWebApplication/Scripts/ZsJs/selectCombox.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/ZsJs/newselectCombox.js" type="text/javascript"></script>